﻿using System;
using System.Data;
using System.Configuration;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class _Default : System.Web.UI.Page 
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void ImgBtnOK_Click(object sender, ImageClickEventArgs e)
    {
        string str1 = this.TxtStr1.Text;
        string str2 = this.TxtStr2.Text;
        int i = str1.CompareTo(str2);
        if (i == 0)
        {
            Response.Write("<script language=javascript>alert('恭喜您，两次输入的密码相同！');location='javascript:history.go(-1)'</script>");
        }
        else
        {
            Response.Write("<script language=javascript>alert('对不起！两次输入的密码不同！');location='javascript:history.go(-1)'</script>");
        }
    }
    protected void ImgBtnCz_Click(object sender, ImageClickEventArgs e)
    {
        this.TxtStr1.Text = "";
        this.TxtStr2.Text = "";
    }
}
